﻿var h = window.innerHeight
           || document.documentElement.clientHeight
           || document.body.clientHeight;
var w = window.innerWidth
           || document.documentElement.clientWidth
           || document.body.clientWidth;

	h = h - 150;
$(document).ready(function () {
if (w<1250)
  {
  document.body.style.backgroundImage="url("+public+"/images/background1280.jpg)";
  }
else if(w<=1366)
  {
  //document.body.style.backgroundImage="url("+public+"/images/background1366.jpg)";
  }
  else if(w<=1440)
  {
  document.body.style.backgroundImage="url("+public+"/images/background1440.jpg)";
  }
  else if(w<=1600)
  {
  document.body.style.backgroundImage="url("+public+"/images/background1600.jpg)";
  }
  else
  {
  document.body.style.backgroundImage="url("+public+"/images/background.jpg)";
  }
   var height = $(window).height();
		form = height/2-241;
		$(".login-form").css("margin-top",form).fadeIn(1000);
		footer = form;

		$(".footer").css("margin-top",footer);
	
});

//小阮添加 控制页面登陆模块
// JavaScript Document
